<%@ page import="com.lihuanyu.upcOA.service.question" %>
<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2015/9/1
  Time: 17:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%request.setCharacterEncoding("utf-8");%>
<jsp:useBean id="tquestion" class="com.lihuanyu.upcOA.model.questionTable"></jsp:useBean>
<jsp:useBean id="question" class="com.lihuanyu.upcOA.service.question"></jsp:useBean>
<jsp:setProperty name="tquestion" property="*"></jsp:setProperty>
<html>
<head>
    <title></title>
</head>
<body>

  <%
  if(question.dbquestion(tquestion)==0) {%>
  <script>
    alert("发送失败，请检查网络！！");
    window.history.back();
  </script>
  <%}
  else{
  %>
  <script>
    alert("发送成功，等待回复！！");
    window.location.href="index.jsp";
  </script>
<%
  }%>
</body>
</html>
